<template>
  <div>
    <el-menu
        style="width: 200px; min-height: calc(100vh - 50px)"
        :default-active="$route.path"
        router
    >
      <div  v-for="m in user.permissions" :key="m.promissionId">
        <el-menu-item :index="m.path" v-if="m.permissionName !== 'Person' && m.permissionName !== 'Password' ">
          <i :class="m.permissionIcon"></i>  {{m.permissionRealName}}
        </el-menu-item>
      </div>
    </el-menu>
  </div>
</template>

<script>

export default {
  name: "Aside",
  data() {
    return {
      user: {}
    }
  },
  created() {
    let userStr = sessionStorage.getItem("user") || "{}"
    this.user = JSON.parse(userStr)
    
    
  }
}
</script>

<style scoped>

</style>
